package com.training.bowlapp.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.training.persistence.dao.BowlGameDao;
import com.training.persistence.entity.BowlGame;

@Component
@Service(value="gameService")
public class GameServiceImpl implements GameService{

	@Autowired
	private BowlGameDao bowlGameDao;
	
	public List<BowlGame> getAllBowlGames() {
		return bowlGameDao.findAllBowlGames() ;
	}

	public BowlGameDao getBowlGameDao() {
		return bowlGameDao;
	}

	public void setBowlGameDao(BowlGameDao bowlGameDao) {
		this.bowlGameDao = bowlGameDao;
	}

}
